/**
 * @Author:  蓝建平
 * @Description:
 * @Date:  2019/12/5
 */
void main()
{
  Future.delayed(new Duration(seconds: 2),
          (){
    throw AssertionError("致命错误！");
    return  "hello world";})
      .then((data){
        print(data);
  }).catchError((e){
    print(e);
  }).whenComplete((){
    print("Game is Over");
  });
}